<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>派生选择器</title>
	<style>
	div div div span{
		background: #777;
		font-size: 50px;
	}
	.d1 div div s{
		background: #111;
	}
	.d1 div div div s{
		background: #666;
	}
	</style>
	</head>
	<body>
		
		<div class="d1">
			<div><p>段落1</p></div><s>删除线</s><div><s>删除线</s><div></div></div>
			<div><p>段落2</p></div>
		</div>
		
		<div id="d1">
		<div>
			<p>段落</p>
			<span>行内1</span>
		<div>
		    <span>行内2</span>
		</div>
		</div>
		</div>
	</body>
</html>